@import 'assets/base.scss';
// @import "@taroify/core/styles/index.scss";
@import "./styles/themes.scss";

page {
  -webkit-overflow-scrolling: touch;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', sans-serif;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 24px;
}

// 默认应用薄荷绿主题
.theme-mint {
  @include set-theme-variables($mint-theme);
}

// 奶油橙主题
.theme-cream {
  @include set-theme-variables($cream-theme);
}

// 全局页面基础样式
page, .index-page, .container, .page-wrapper {
  background-color: var(--bg-color);
  color: var(--text-primary-color);
}

view {
  box-sizing: border-box;
}

// 确保所有文本元素的最小字体大小
text, button, input, textarea, view, .text, .button, .input, .textarea {
  font-size: 24px;
}

// 全局主题过渡动画（使用具体选择器而不是通配符）
page, view, text, button, input, textarea, image, scroll-view, swiper,
.index-page, .container, .page-wrapper, .tools-section, .weather-section,
.tool-card, .icon-box, .theme-switcher, .section-title, .tool-name,
.tool-desc, .tool-button, .feedback-modal, .feedback-content {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
